package com.yc.plugin.app

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import com.yc.plugin.app.ui.PluginHostLibViewBindingActivity
import com.yc.plugin.app.ui.PluginViewBindingActivity
import com.yc.plugin.app.ui.PluginWelcomeActivity

class TestMainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Log.e("TestActivity", "onCreate")
        setContentView(R.layout.activity_main)

        findViewById<Button>(R.id.btnPlugin3).setOnClickListener {
            startActivity(Intent(this, PluginWelcomeActivity::class.java))
        }
        findViewById<Button>(R.id.btnPlugin4).setOnClickListener {
            startActivity(Intent(this, PluginHostLibViewBindingActivity::class.java))
        }
        findViewById<Button>(R.id.btnPlugin5).setOnClickListener {
            startActivity(Intent(this, PluginViewBindingActivity::class.java))
        }
//        findViewById<Button>(R.id.btnPlugin4).setOnClickListener {
//            startActivity(Intent(this, PluginTestViewBindingActivity::class.java))
//        }
//        findViewById<Button>(R.id.btnPluginLibTestAc).setOnClickListener {
//            startActivity(Intent(this, TestViewBindingActivity2::class.java))
//        }
//        findViewById<Button>(R.id.btnPluginLibTestViewBinding).setOnClickListener {
//            startActivity(Intent(this, TestViewBindingActivity::class.java))
//        }

    }
}